package com.zwh.spring.demo.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
	@RequestMapping(value="/hello2", method=RequestMethod.GET)
	@ResponseBody
	public String hello2(@RequestParam String name) {
		return "Hello " + name;
	}
}
